package com.oly.cms.admin.controller.api;

import java.util.Map;

import com.oly.cms.common.constant.CacheConstant;
import com.ruoyi.common.core.domain.AjaxResult;

import org.apache.poi.util.SystemOutLogger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/test")
public class TestApi {

    @Autowired
    private CacheManager cacheManager;

    /**
     * 获取App配置
     * 
     * @return
     */
    @GetMapping("/getAppInfo")
    public AjaxResult getAppInfo(String a) {
        System.out.println("你好啊" + a);
        System.out.println(cacheManager.getClass());
        return AjaxResult.success("你好啊" + a);
    }
}
